#include<iostream>
using namespace std;
class CPolygon
{
protected:
	int w, h;
public:
	void setvalues(int a, int b);


};
class CRectangle : public CPolygon
{
public:
	int area();

};
class CTriangle : public CPolygon
{
	public:
		int area();

};